/* eslint-disable */
export const basicComponents = [
  {
    type: "input",
    label: "单行文本",
    icon: "el-icon-yrt-danhangshurukuang",
    options: {
      width: "100%",
      defaultValue: "",
      required: false,
      readonly: false,
      disabled: false,
      dataType: "string",
      pattern: "",
      placeholder: "",
      noLabel: false // 无标题
    }
  },
  {
    type: "select",
    label: "下拉选择框",
    icon: "el-icon-yrt-biaodanzujian-xialakuang",
    options: {
      width: "100%",
      defaultValue: "",
      multiple: false,
      disabled: false,
      clearable: false,
      placeholder: "",
      required: false,
      showLabel: true,
      noLabel: false, // 无标题
      options: [
        {
          value: "下拉框1"
        },
        {
          value: "下拉框2"
        },
        {
          value: "下拉框3"
        }
      ],
      remote: "bindDropdown", // true, false, bindDropdown
      remoteOptions: [],
      dropdown_Id: 0, // 下拉框ID
      props: {
        value: "value",
        label: "label"
      },
      remoteFunc: ""
    }
  },
  {
    type: "input-select",
    label: "输入选择框",
    icon: "el-icon-yrt-biaodanzujian-xialakuang",
    options: {
      width: "100%",
      defaultValue: "",
      multiple: false,
      disabled: false,
      clearable: false,
      placeholder: "",
      required: false,
      showLabel: true,
      noLabel: false, // 无标题
      options: [
        {
          value: "下拉框1"
        },
        {
          value: "下拉框2"
        },
        {
          value: "下拉框3"
        }
      ],
      remote: "bindDropdown", // true, false, bindDropdown
      remoteOptions: [],
      dropdown_Id: 0, // 下拉框ID
      props: {
        value: "value",
        label: "label"
      },
      remoteFunc: ""
    }
  },
  {
    type: "table-select",
    label: "表格选择框",
    icon: "el-icon-yrt-biaodanzujian-xialakuang",
    options: {
      width: "100%",
      defaultValue: "",
      multiple: false,
      disabled: false,
      clearable: false,
      placeholder: "",
      required: false,
      showLabel: true,
      noLabel: false, // 无标题
      columns: [],
      url: null, // 接口地址
      searchFields: null // 查询字段
    }
  },
  {
    type: "switch",
    label: "开关",
    icon: "el-icon-yrt-kaiguanclose",
    options: {
      defaultValue: false,
      required: false,
      disabled: false,
      noLabel: false // 无标题
    }
  },
  {
    type: "radio",
    label: "单选框组",
    icon: "el-icon-yrt-danxuan",
    options: {
      inline: false,
      defaultValue: "",
      showLabel: false,
      noLabel: false, // 无标题,
      options: [
        {
          value: "选项1",
          label: "选项1"
        },
        {
          value: "选项2",
          label: "选项2"
        }
      ],
      required: false,
      width: "",
      remote: "bindDropdown", // true、false、bindDropdown
      remoteOptions: [],
      props: {
        value: "value",
        label: "label"
      },
      remoteFunc: ""
    }
  },
  {
    type: "checkbox",
    label: "多选框组",
    icon: "el-icon-yrt-fuxuan",
    options: {
      inline: false,
      defaultValue: [],
      showLabel: false,
      noLabel: false, // 无标题,
      options: [
        {
          value: "选项1"
        },
        {
          value: "选项2"
        }
      ],
      required: false,
      width: "",
      remote: "bindDropdown",
      remoteOptions: [],
      props: {
        value: "value",
        label: "label"
      },
      remoteFunc: ""
    }
  },
  {
    type: "cascader",
    label: "级联选择器",
    icon: "el-icon-yrt-jilianxuanze",
    options: {
      width: "100%",
      defaultValue: [],
      showLabel: false,
      noLabel: false, // 无标题,
      options: [
        {
          value: 0,
          label: "[根级]",
          chlidren: []
        }
      ],
      required: false,
      remote: "bindDropdown",
      remoteOptions: [],
      props: {
        value: "value",
        label: "label"
      },
      remoteFunc: ""
    }
  },
  {
    type: "tree",
    label: "TREE选择器",
    icon: "el-icon-yrt-jilianxuanze",
    options: {
      width: "100%",
      defaultValue: null,
      showLabel: false,
      noLabel: false, // 无标题,
      required: false,
      onlySelectLeaf: true, // 仅选择叶节点
      disabled: false,
      props: {
        value: "value",
        label: "label"
      }
    },
    ajaxParams: {} // 默认数据
  },
  {
    type: "textarea",
    label: "多行文本",
    icon: "el-icon-yrt-duohangshurukuang",
    options: {
      width: "100%",
      defaultValue: "",
      required: false,
      readonly: false,
      disabled: false,
      pattern: "",
      placeholder: "",
      noLabel: false // 无标题
    }
  },
  {
    type: "number",
    label: "计数器",
    icon: "el-icon-yrt-fuhao-shuzishurukuang",
    options: {
      width: "",
      required: false,
      defaultValue: 0,
      min: "",
      max: "",
      step: 1,
      disabled: false,
      controlsPosition: "",
      noLabel: false // 无标题
    }
  },
  {
    type: "time",
    label: "时间选择器",
    icon: "el-icon-yrt-date-1",
    options: {
      width: "100%",
      defaultValue: "21:19:56",
      readonly: false,
      disabled: false,
      editable: true,
      clearable: true,
      placeholder: "",
      startPlaceholder: "",
      endPlaceholder: "",
      isRange: false,
      arrowControl: true,
      format: "HH:mm",
      required: false,
      start: "00:00",
      end: "23:59",
      step: "00:15",
      fixedTimeSelect: true, // 固定时间选择模式
      noLabel: false // 无标题
    }
  },
  {
    type: "date",
    label: "日期选择器",
    icon: "el-icon-yrt-rili2",
    options: {
      width: "100%",
      defaultValue: "",
      readonly: false,
      disabled: false,
      editable: true,
      clearable: true,
      placeholder: "",
      startPlaceholder: "",
      endPlaceholder: "",
      type: "date",
      format: "yyyy-MM-dd",
      timestamp: false,
      required: false,
      noLabel: false // 无标题
    }
  },
  {
    type: "datetime",
    label: "日期时间选择器",
    icon: "el-icon-yrt-rili2",
    options: {
      width: "100%",
      defaultValue: "",
      readonly: false,
      disabled: false,
      editable: true,
      clearable: true,
      placeholder: "",
      startPlaceholder: "",
      endPlaceholder: "",
      type: "datetime",
      format: "yyyy-MM-dd HH:mm:ss",
      timestamp: false,
      required: false,
      noLabel: false // 无标题
    }
  },
  {
    type: "color",
    label: "颜色选择器",
    icon: "el-icon-yrt-yanse",
    options: {
      defaultValue: "",
      disabled: false,
      showAlpha: false,
      required: false,
      noLabel: false // 无标题
    }
  },
  {
    type: "blank",
    label: "空白",
    icon: "el-icon-yrt-layout-custom",
    options: {
      defaultType: "String",
      noLabel: false // 无标题
    }
  }
];

export const layoutComponents = [
  {
    type: "grid",
    label: "栅格布局",
    icon: "el-icon-yrt-saomiaoerweima",
    columns: [
      {
        span: 12,
        fields: []
      },
      {
        span: 12,
        fields: []
      }
    ],
    options: {
      gutter: 0,
      justify: "start",
      align: "top"
    }
  },
  {
    type: "inline-group",
    label: "行内布局",
    icon: "el-icon-yrt-ai-list",
    fields: [],
    options: {}
  },
  {
    type: "splitter-group",
    label: "分割标题",
    icon: "el-icon-yrt-biaoti",
    options: {}
  }
];
